home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 26 / Mac Magazin and MacEasy Magazine CD - Issue 26.iso / Wissenschaft & Technik / TimGA 1.1 ƒ / Graphs / (1) Small graphs / 10 - Binary Tree < prev    next >
Text File  |  1995-08-02  |  333b  |  41 lines

  1.  
  2. |V|:    31        // Number of nodes
  3. |E|:    30        // Number of edges
  4.  
  5.     1    2        // Edges are represented as pairs of node numbers...
  6.     1    3
  7.  
  8.     2    4
  9.     2    5
  10.     3    6
  11.     3    7
  12.  
  13.     4    8
  14.     4    9
  15.     5    10
  16.     5    11
  17.     6    12
  18.     6    13
  19.     7    14
  20.     7    15
  21.  
  22.     8    16
  23.     8    17
  24.     9    18
  25.     9    19
  26.     10    20
  27.     10    21
  28.     11    22
  29.     11    23
  30.     12    24
  31.     12    25
  32.     13    26
  33.     13    27
  34.     14    28
  35.     14    29
  36.     15    30
  37.     15    31
  38.  
  39. ---
  40. This graph is a binary tree.
  41.